package com.bootdo.system.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.system.dao.DlNewsCategoryDao;
import com.bootdo.system.domain.DlNewsCategoryDO;
import com.bootdo.system.service.DlNewsCategoryService;



@Service
public class DlNewsCategoryServiceImpl implements DlNewsCategoryService {
	@Autowired
	private DlNewsCategoryDao dlNewsCategoryDao;
	
	@Override
	public DlNewsCategoryDO get(Integer newsCategoryId){
		return dlNewsCategoryDao.get(newsCategoryId);
	}
	
	@Override
	public List<DlNewsCategoryDO> list(Map<String, Object> map){
		return dlNewsCategoryDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return dlNewsCategoryDao.count(map);
	}
	
	@Override
	public int save(DlNewsCategoryDO dlNewsCategory){
		return dlNewsCategoryDao.save(dlNewsCategory);
	}
	
	@Override
	public int update(DlNewsCategoryDO dlNewsCategory){
		return dlNewsCategoryDao.update(dlNewsCategory);
	}
	
	@Override
	public int remove(Integer newsCategoryId){
		return dlNewsCategoryDao.remove(newsCategoryId);
	}
	
	@Override
	public int batchRemove(Integer[] newsCategoryIds){
		return dlNewsCategoryDao.batchRemove(newsCategoryIds);
	}
	
}
